import formBuilder from "@/comps/form/formBuilder";
import apiItemBase from "@/pages/v1/wms/ItemBase/js/api";
import apiAttribute from "@/pages/v1/wms/AttributeKey/js/api";

export default function () {
    let fb = formBuilder()
    fb.setLabelPosition("right").setLabelWidth(100)
    fb.addText("name__like").setLabel("名称").setSpan(4).setTips("名称模糊搜索")
    fb.addSearch("itemBaseId","物资",4)
        .setApi(apiItemBase.urlChoice).setApiSearchKeys(["name__like"])
    fb.addSearch("attributeId","属性",4)
        .setApi(apiAttribute.urlChoice).setApiSearchKeys(["name__like"])
    return fb
}